import { createRouter, createWebHistory } from "vue-router";

// /路径

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/",
      redirect: "/goods",
      children: [
        {
          path: "goods",
          name: "goods",
          component: () => import("../views/zhuti/A.vue"),
        },
        {
          path: "seller",
          name: "seller",
          component: () => import("../views/zhuti/B.vue"),     
           },
        {
          path: "rating",
          name: "rating",
          component: () => import("../views/zhuti/C.vue"),          
        },
      ],
    },
  ],
});

export default router;
